home *** CD-ROM | disk | FTP | other *** search
/ Holt Researcher: American History / Holt Researcher: American History.iso / pc / modules / results.dxr / 00001_global movie script.ls next >
Encoding:
Text File  |  2000-01-31  |  791 b   |  28 lines

  1. on startMovie
  2.   set the textHeight of member "results field" to 14
  3. end
  4.  
  5. on setSearchResultsList titles, hitList, criteria
  6.   global gResultsClassObj
  7.   if count(hitList) = 0 then
  8.     put "‚Äî No items found in search ‚Äî" into field "results field"
  9.     beep()
  10.   else
  11.     if the last char in titles = RETURN then
  12.       delete char -30000 of titles
  13.     end if
  14.     put titles into field "results field"
  15.   end if
  16.   if count(hitList) < 25 then
  17.     repeat with i = count(hitList) to 25
  18.       put RETURN after field "results field"
  19.     end repeat
  20.   end if
  21.   put string(hitList) into field "hitList field"
  22.   put criteria into field "criteria field"
  23.   if objectp(gResultsClassObj) then
  24.     adjustScrollbar(getScrollbarObj(gResultsClassObj))
  25.     disable(getOpenButtonObj(gResultsClassObj))
  26.   end if
  27. end
  28.